import {
	post
} from './axios.js';
import store from '../store.js';

//修改用户信息
function setMyUserInfo(p_data, callback) {
	let data = {
    ...p_data,
		"Token": store.getters.getToken
	};
	post('/user/saveuserinfo', data, callback);
}

//获取用户信息
function getMyUserInfo(callback) {
	let data = {
		"Token": store.getters.getToken
	};
	post('/user/getmyuserinfo', data, callback);
}

//读取列表
function getMyselfTestlist(p_data, callback) {
	let data = {
    ...p_data,
		"Token": store.getters.getToken
	};
	post('/content/getmyselftestlist', data, callback);
}

//我的征订
function saveSolicitInfo(p_data, callback) {
	let data = {
    ...p_data,
		"Token": store.getters.getToken
	};
	post('/content/savesolicitinfo', data, callback);
}

export default {
	setMyUserInfo: setMyUserInfo,
	getMyUserInfo: getMyUserInfo,
	getMyselfTestlist: getMyselfTestlist,
	saveSolicitInfo: saveSolicitInfo,
}
